package com.xqboss.apps.service.user;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xqboss.apps.domain.user.SysUserWallet;
import com.xqboss.apps.domain.user.SysUserWalletLog;
import com.xqboss.apps.enums.user.UserWalletEnum;
import com.xqboss.apps.mapper.user.SysUserWalletLogMapper;
import com.xqboss.apps.mapper.user.SysUserWalletMapper;
import com.xqboss.common.core.redis.lock.LockValue;
import com.xqboss.common.core.redis.lock.RedisLock;
import com.xqboss.common.exception.ServiceException;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;

/**
 * 钱包变动日志，仅作为日志存储，为了后期有问题进行排查
 * @author Trent
 * @date 2023/8/14
 */
@Service
public class SysUserWalletLogService extends ServiceImpl<SysUserWalletLogMapper, SysUserWalletLog> {

    /**
     * 异步存储日志信息
     * @param walletLog
     */
    public void syncRecordLog(SysUserWalletLog walletLog) {
        save(walletLog);
    }
}
